<template>
  <div class="fullscreen-page">
    <!-- 这里是你的页面内容，不会包含顶部和左侧菜单 -->
    <div class="container">
      <h1>全屏页面示例</h1>
      <p>这个页面不包含顶部导航和左侧菜单</p>
      <button @click="handleBack" class="back-btn">返回主页面</button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();

// 返回主页面
const handleBack = () => {
  router.push('/');
};
</script>

<style scoped>
.fullscreen-page {
  min-height: 100vh;
  background-color: #f5f7fa;
  padding: 20px;
}

.container {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 0 auto;
}

.back-btn {
  margin-top: 20px;
  padding: 8px 16px;
  background-color: #409eff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.back-btn:hover {
  background-color: #66b1ff;
}
</style>
